<?php

namespace app\modules\cruise\models;

use Yii;

/**
 * This is the model class for table "card".
 *
 * @property int $id
 * @property int $card 区号
 * @property string $area 地区名称
 */
class Card extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'card';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['card'], 'integer'],
            [['area'], 'string', 'max' => 128],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'card' => 'Card',
            'area' => 'Area',
        ];
    }
}
